package com.zx.idc.backend.gui.api.management.scheduler.job;

import com.zx.idc.backend.gui.api.management.statusreport.activestate.service.ActiveStateService;
import com.zx.idc.common.spring.SpringBeanUtil;
import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * ISMS活动状态 主动上报 10分钟一次
 */
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class ReportActiveStateWebJob implements Job {
    private static final Logger LOG = LoggerFactory.getLogger(ReportActiveStateWebJob.class);

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        ActiveStateService activeStateService = SpringBeanUtil.getBean(ActiveStateService.class);
        activeStateService.activeState();
        LOG.info("ISMS活动状态主动上报job执行成功");
    }
}
